package com.zhny.aiot.soil.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;

public class SoilStoreEntry extends StoreEntity {
    @PropertyValue(alias = "含水率",description = "土壤含水率",unit = "%",icon=IconConstract.Watercontent,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double watercontent;
    @PropertyValue(alias = "温度",description = "土壤温度",unit = "°C",icon=IconConstract.Temperature,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double temperature;
    @PropertyValue(alias = "电导率",description = "土壤电导率",unit = "%",icon=IconConstract.Conductivity,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private int conductivity;
    @PropertyValue(alias = "PH",description = "PH",unit = "",icon=IconConstract.PH,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private double ph;
    @PropertyValue(alias = "盐度",description = "土壤盐度",unit = "%",icon=IconConstract.Salinity,variableType=VariableType.Numerical,actions={
            @ActionValue(name=Operate.Check,commandCode="query",eventType=EventType.Click)
    })
    private int salinity;

    public double getWatercontent() {
        return watercontent;
    }

    public void setWatercontent(double watercontent) {
        this.watercontent = watercontent;
    }

    public double getTemperature() {
        return temperature;
    }

    public void setTemperature(double temperature) {
        this.temperature = temperature;
    }

    public int getConductivity() {
        return conductivity;
    }

    public void setConductivity(int conductivity) {
        this.conductivity = conductivity;
    }

    public int getSalinity() {
        return salinity;
    }

    public void setSalinity(int salinity) {
        this.salinity = salinity;
    }

    public double getPh() {
        return ph;
    }

    public void setPh(double ph) {
        this.ph=ph;
    }
}
